<extend name="CommonAdmin:base" />

<block name="script">
<script>

$(function() {
   $("input:button").button();
});
function back() {
    var url = "__URL__/index";
    window.location = url;
}
</script>
</block>

<block name="main-in">
<div>
<form action="__URL__/save" method="post">
<div>
<input type="hidden" name="id" value="{$vo.id}" />
</div>
    <table>
        <tr>
            <td class="required">公司</td>
            <td>
                <select name="company_id">
                    <volist name="companyList" id="data">
                    <option value="{$data.id}" <if condition="$data['id'] eq $vo['company_id']" >selected="selected"</if> >{$data.company_name}</option>
                    </volist>
                </select>
            </td>
        </tr>
        <tr>
            <td class="required">类别</td>
            <td>
                <input type="text" name="sortname" value="{$vo.sortname}" />
            </td>
        </tr>
        <tr>
            <td>外国名</td>
            <td>
                <input type="text" name="abroadname" value="{$vo.abroadname}" />
            </td>
        </tr>
        <tr>
            <td>编码</td>
            <td>
                <input type="text" name="code" value="{$vo.code}" />
            </td>
        </tr>
        <tr>
            <td>是否默认</td>
            <td>
                    <input type="radio" name="isdefault" value="1" <if condition="$vo.isdefault eq 1" >checked="checked" </if> id="isdefaultYes" />是
                    <input type="radio" name="isdefault" value="0" <if condition="$vo.isdefault eq 0" >checked="checked" </if> id="isdefaultNo" />否
            </td>
        </tr>
        <tr>
            <td colspan=2 align="right">
                <button type="submit">提交</button>
                <button type="button" onclick="back()">返回</button>
            </td>
        </tr>
    </table>
</form>
</div>
</block>